package com.think.teaching.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.think.teaching.model.ArticleLesson;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 文章课程章节 服务类
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
@Service
public interface ArticleLessonService extends IService<ArticleLesson> {

	ArticleLesson AddArticleLesson(ArticleLesson articleLesson);

	ArticleLesson UpdateArticleLesson(ArticleLesson articleLesson);

	ArticleLesson GetArticleLesson(Integer id);

	List<ArticleLesson> SearchArticleLessonsWithKey(String key,Boolean withoutBan);

	IPage<ArticleLesson> ListArticleLessonWithTagAndType(Integer count, Integer page, Integer type, Integer tag,Boolean withoutBan);

	ArticleLesson SetArticleLessonState(Integer id, Integer state);

}
